package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.MissionItemFeedbackAddDTO;
import org.jsola.hr.dto.MissionItemFeedbackUpdateDTO;
import org.jsola.hr.query.MissionItemFeedbackQuery;
import org.jsola.hr.vo.MissionItemFeedbackListVO;
import org.jsola.hr.vo.MissionItemFeedbackVO;

import java.util.List;

/**
 * 任务调度中心子项反馈记录
 *
 * @author zhr
 */
@Api(tags = "hr-任务调度中心子项反馈记录")
public interface IMissionItemFeedbackControllerAPI {

    /**
     * 新增任务调度中心子项反馈记录
     * @param missionItemFeedbackAddDTO 任务调度中心子项反馈记录新增实体
     * @return 任务调度中心子项反馈记录展示对象
     */
    @ApiOperation(value = "新增任务调度中心子项反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "missionItemFeedbackAddDTO", dataType = "MissionItemFeedbackAddDTO", value = "新增任务调度中心子项反馈记录", paramType = "body")
    })
    Result<MissionItemFeedbackVO> save(MissionItemFeedbackAddDTO missionItemFeedbackAddDTO);


    /**
     * 修改任务调度中心子项反馈记录
     * @param missionItemFeedbackUpdateDTO 任务调度中心子项反馈记录
     * @return 更新数量
     */
    @ApiOperation(value = "修改任务调度中心子项反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "missionItemFeedbackUpdateDTO", dataType = "MissionItemFeedbackUpdateDTO", value = "修改任务调度中心子项反馈记录", paramType = "body")
    })
    Result<Integer> update(MissionItemFeedbackUpdateDTO missionItemFeedbackUpdateDTO);




    /**
     * 删除单个任务调度中心子项反馈记录，彻底删除
     * @param missionItemFeedbackId 任务调度中心子项反馈记录id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个任务调度中心子项反馈记录，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "missionItemFeedbackId", dataType = "String", value = "任务调度中心子项反馈记录id", paramType = "path")
    })
    Result<Integer> delete(String missionItemFeedbackId);


    /**
     * 批量删除任务调度中心子项反馈记录，彻底删除
     * @param missionItemFeedbackIds 任务调度中心子项反馈记录id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除任务调度中心子项反馈记录，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "missionItemFeedbackIds", dataType = "String[]", value = "任务调度中心子项反馈记录id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] missionItemFeedbackIds);


    /**
     * 根据任务调度中心子项反馈记录id查询任务调度中心子项反馈记录详情
     * @param missionItemFeedbackId 任务调度中心子项反馈记录id
     * @return 任务调度中心子项反馈记录详情
     */
    @ApiOperation(value="根据任务调度中心子项反馈记录id查询任务调度中心子项反馈记录详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "missionItemFeedbackId", dataType = "String", value = "任务调度中心子项反馈记录id", paramType = "path")
    })
    Result<MissionItemFeedbackVO> findById(String missionItemFeedbackId);


    /**
     * 查询任务调度中心子项反馈记录
     * @param missionItemFeedbackQuery 任务调度中心子项反馈记录查询参数
     * @return page
     */
    @ApiOperation(value="查询任务调度中心子项反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "missionItemFeedbackQuery", dataType = "MissionItemFeedbackQuery", value = "任务调度中心子项反馈记录查询参数", paramType = "query")
    })
    Result<List<MissionItemFeedbackListVO>> listAll(MissionItemFeedbackQuery missionItemFeedbackQuery);


     /**
     * 分页查询任务调度中心子项反馈记录
     * @param missionItemFeedbackQuery 任务调度中心子项反馈记录查询参数
     * @return page
     */
    @ApiOperation(value="分页查询任务调度中心子项反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "missionItemFeedbackQuery", dataType = "MissionItemFeedbackQuery", value = "任务调度中心子项反馈记录查询参数", paramType = "query")
    })
    Result<Page<MissionItemFeedbackListVO>> page(MissionItemFeedbackQuery missionItemFeedbackQuery);

    /**
     * 根据子项Id查询该子项反馈记录
     *
     * @param itemId 派单子项Id
     * @return 反馈记录
     */
    @ApiOperation(value="根据子项Id查询该子项反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "itemId", dataType = "String", value = "子项Id", paramType = "path")
    })
    Result<List<MissionItemFeedbackListVO>> selectFeedbackByItemId(String itemId);

}

